<h1><%= title "Kingdom of #{@kingdom.name}" %></h1>


<p>
  <b>Culture:</b>
  <%=link_to_record @kingdom.culture %>
</p>

<p>
  <b>Flag:</b>
  <%=h @kingdom.flag %>
</p>

<p>
  <b>Ruler:</b>
  <%=link_to_record Title.king_of @kingdom %>
</p>

<div id="duchies">
	<h2>Duchies</h2>
	<ul>
	<%= list_records (@kingdom.duchies)%>
	</ul>
</div>

<div id="courtiers">
	<%= render :partial => '/shared/courtiers', :locals => {:territory => @kingdom} %>
</div>

<%= render :partial => '/shared/court_actions', :locals => {:territory => @kingdom} %>

<% if is_admin? %>
<%= link_to 'Edit', edit_kingdom_path(@kingdom) %> |
<%= link_to 'Back', kingdoms_path %> |
<% end %>

<%= link_to 'Home', '/' %>

